<?php 
 /*
    require_once 'library/lessphp/less_minified.inc.php';
    try { LessMinified::ccompile('public/media/css/base.less', 'public/media/css/base.css');
    } catch (exception $ex) { exit('lessc fatal error:<br />'.$ex->getMessage()); }

?>

<?php
 
    require_once 'library/lessphp/less_minified.inc.php';
    try { LessMinified::ccompile('public/media/css/style.less', 'public/media/css/style.css');
    } catch (exception $ex) { exit('lessc fatal error:<br />'.$ex->getMessage()); }
*/
?>

<?php

/*

if ($_SERVER['PHP_AUTH_USER'] != 'admin' || $_SERVER['PHP_AUTH_PW'] != 'tec.123') {
    header('WWW-Authenticate: Basic realm="Acesso Restrito"'); 
    header('HTTP/1.0 401 Unauthorized');
    echo 'Acesso Restrito...';
    exit;
} 
 
*/

$url = $_SERVER['HTTP_HOST'];
$pos = strpos($url, 'www.');
if($pos === false && $url != 'www.grupotecnocell.com.br') header("Location: http://www.grupotecnocell.com.br");
else if($url != 'www.grupotecnocell.com.br') header("Location: http://www.grupotecnocell.com.br");
    


ob_start();

define('RUNNING_FROM_ROOT', true);
include 'public/index.php';

$html = ob_get_clean();
echo preg_replace('/\s+/', ' ', $html);


